Skip to content

Fix/fix relationship set and view #1877

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

ernstmul
Copy link
Contributor

What does this PR do?

Fix the pre select of the option in the relation overview of the document

Have you read the Contributing Guidelines on issues?

@ernstmul ernstmul requested a review from ItzNotABug May 22, 2025 14:11
@coolify-appwrite-org
Copy link

coolify-appwrite-org bot commented May 22, 2025

The preview deployment is ready. 🟢

Open Preview | Open Build Logs

Last updated at: 2025-05-23 09:13:51 CET

@coolify-appwrite-org
Copy link

coolify-appwrite-org bot commented May 22, 2025

The preview deployment is ready. 🟢

Open Preview | Open Build Logs

Last updated at: 2025-05-23 09:13:54 CET

return sdk
.forProject(page.params.region, page.params.project)
.databases.listCollections(databaseId, queries, search);
.databases.listCollections(databaseId, queries);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So search is being removed because the component is a basic dropdown rather than a combo box where you can type to search? This will make it difficult for people to find the option they need.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is getting the collections from the API. The combobox is filtering on the client based on what the API returned. ATM search is defaulting as null which results in 0 results coming from the API. So ATM it's entirely broken, and this fixes that.
Updating this to the ComboBox is still something we need to do, but there is a bug that the dropdown of the combobox falls behind the modal, so you cannot use it.

TLDR: this change is going from 100% broken to usable. We need to do more work to make it good.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stnguyen90 its now using the combobox! @ArmanNik fixed the issue with the dropdown being behind the modal!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So shouldn't the search be added back while making sure the search param isn't passed in the API call if the user hasn't entered any value?

return sdk
.forProject(page.params.region, page.params.project)
.databases.listCollections(databaseId, queries, search);
.databases.listCollections(databaseId, queries);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So shouldn't the search be added back while making sure the search param isn't passed in the API call if the user hasn't entered any value?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants